package com.rboat.exam.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.rboat.common.annotation.Excel;
import com.rboat.common.core.domain.BaseEntity;
import java.util.Date;

/**
 * 试卷考生对象 exam_test_paper_user
 * 
 * @author rboat
 * @date 2019-09-02
 */
public class ExamTestPaperUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private String id;

    /** 考卷ID:t_exam_test_paper:id */
    @Excel(name = "考卷ID:t_exam_test_paper:id")
    private String testPaperId;

    /** 考生ID */
    @Excel(name = "考生ID")
    private String userId;

    /** 考试开始时间 */
    @Excel(name = "考试开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date beginTime;

    /** 考试结束时间 */
    @Excel(name = "考试结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 考试耗时时长（分钟） */
    @Excel(name = "考试耗时时长", readConverterExp = "分=钟")
    private Long duration;

    /** 得分 */
    @Excel(name = "得分")
    private Long score;

    /** 状态：0:未开始考试；1：正在考试；2：已交卷 3:缺考 */
    @Excel(name = "状态：0:未开始考试；1：正在考试；2：已交卷 3:缺考")
    private String state;

    /** 批阅状态：0未批阅；1：部分批阅（针对填空问题题才有的状态）2：已批阅 */
    @Excel(name = "批阅状态：0未批阅；1：部分批阅", readConverterExp = "针=对填空问题题才有的状态")
    private String checkState;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setTestPaperId(String testPaperId) 
    {
        this.testPaperId = testPaperId;
    }

    public String getTestPaperId() 
    {
        return testPaperId;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setBeginTime(Date beginTime) 
    {
        this.beginTime = beginTime;
    }

    public Date getBeginTime() 
    {
        return beginTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setDuration(Long duration) 
    {
        this.duration = duration;
    }

    public Long getDuration() 
    {
        return duration;
    }
    public void setScore(Long score) 
    {
        this.score = score;
    }

    public Long getScore() 
    {
        return score;
    }
    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }
    public void setCheckState(String checkState) 
    {
        this.checkState = checkState;
    }

    public String getCheckState() 
    {
        return checkState;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("testPaperId", getTestPaperId())
            .append("userId", getUserId())
            .append("beginTime", getBeginTime())
            .append("endTime", getEndTime())
            .append("duration", getDuration())
            .append("score", getScore())
            .append("state", getState())
            .append("checkState", getCheckState())
            .toString();
    }
}
